FROM arm32v7/ubuntu:22.10 as wails_arm
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list\
    && sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list\
    && apt-get update -y\
    && apt-get upgrade -y
RUN  apt-get install -y tzdata && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN  apt-get install libgtk-3-dev -y
RUN  apt-get install libwebkit2gtk-4.0-dev -y
RUN  apt-get install -y gcc-arm-linux-gnueabihf
RUN  apt-get install -y g++-arm-linux-gnueabihf
RUN  apt-get install -y git
RUN  apt-get install -y golang
RUN  go env -w GO111MODULE=on
RUN  export GOBIN=/root/go/bin
RUN  go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
RUN  export CC=arm-linux-gnueabi-gcc
RUN  export CXX=arm-linux-gnueabi-g++
#RUN  go get golang.org/dl/go1.18@latest
#RUN  #go install golang.org/dl/go1.18@latest
#RUN  go get github.com/wailsapp/wails/v2/cmd/wails@latest
RUN  go install github.com/wailsapp/wails/v2/cmd/wails@latest
     #    apt-get install -y snap\
#    && snap install -y nodejs\
#    && snap install -y npm\
#    && snap install -y curl \
#    && npm install -g nrm  \
#    && nrm use taobao \
#    && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash \
#    && nvm  \
#    && nvm install 16.16.0 \

